package com.santiao.fuel.ext

import android.content.Context

/**
 * date :   2023-12-15 015
 * author:  DengZhiYang
 * desc:    something
 */

fun Context.dp2px(dpValue: Float): Int {
    val scale = this.resources.displayMetrics.density
    return (dpValue * scale + 0.5f).toInt()
}